-- GENERATED SPELL FOR [Bash'ir Flesh Fiend] --


function spell0_23249(pUnit, Event) --@Gaping Maw,n/a--
pUnit:FullCastSpellOnTarget(29935,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23249', 15600, 1)
end

function spell1_23249(pUnit, Event) --@Infectious Poison,n/a--
pUnit:FullCastSpellOnTarget(29939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23249', 682, 1)
end

function Sorts_23249(pUnit, Event)
local choix_sorts_23249 = math.random(0, 1)
if choix_sorts_23249 == 0 then
pUnit:RegisterEvent('spell0_23249', 1, 1)
end
if choix_sorts_23249 == 1 then
pUnit:RegisterEvent('spell1_23249', 1, 1)
end
end

function mob23249_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23249', math.random(1500, 3000), 1)
end

function mob23249_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23249_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23249_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23249, 1, 'mob23249_Action')
RegisterUnitEvent(23249, 2, 'mob23249_Leave')
RegisterUnitEvent(23249, 3, 'mob23249_Kill')
RegisterUnitEvent(23249, 4, 'mob23249_Die')
